<?php 

include'../classes/db.php';

$email=$_GET['email'];
$reg=$_GET['reg'];

$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));//get date and time
$year=date('Y',$time_now);//get present year

$x=new DbConnect();
$con=$x->getConnection();
  
  $result= mysql_query("Select reg_no from student where email='$email' and year(j_date)='$year' ",$con);
    
while($row=mysql_fetch_array($result))
	{
  	$studno=$row['reg_no'];
  	}

if($reg==$studno)
	{
   		echo"false";
    }
		else
	{
  		echo"true";
   }
?>